-- GENERATED SPELL FOR [Maiden of Pain] --


function spell0_19408(pUnit, Event) --@Lash of Pain,n/a--
pUnit:FullCastSpellOnTarget(15968,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19408', 579, 1)
end

function spell1_19408(pUnit, Event) --@Whipped Frenzy,n/a--
pUnit:FullCastSpellOnTarget(34086,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19408', 597, 1)
end

function Sorts_19408(pUnit, Event)
local choix_sorts_19408 = math.random(0, 1)
if choix_sorts_19408 == 0 then
pUnit:RegisterEvent('spell0_19408', 1, 1)
end
if choix_sorts_19408 == 1 then
pUnit:RegisterEvent('spell1_19408', 1, 1)
end
end

function mob19408_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19408', math.random(1500, 3000), 1)
end

function mob19408_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19408_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19408_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19408, 1, 'mob19408_Action')
RegisterUnitEvent(19408, 2, 'mob19408_Leave')
RegisterUnitEvent(19408, 3, 'mob19408_Kill')
RegisterUnitEvent(19408, 4, 'mob19408_Die')
